//
//  CRNewsModel.m
//  NewAge
//
//  Created by dllo on 15/11/26.
//  Copyright © 2015年 ColorRevolution. All rights reserved.
//

#import "CRNewsModel.h"

@implementation CRNewsModel

+ (CRNewsModel *)cRNewsModel {
    return [[CRNewsModel alloc] init];
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    //    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.imgextra forKey:@"imgextra"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.imgsrc forKey:@"imgsrc"];
    [aCoder encodeObject:self.digest forKey:@"digest"];
    [aCoder encodeObject:self.url_3w forKey:@"url_3w"];
    [aCoder encodeObject:self.photosetID forKey:@"photosetID"];
    [aCoder encodeObject:self.ads forKey:@"ads"];
    [aCoder encodeObject:self.skipType forKey:@"skipType"];
    [aCoder encodeObject:self.specialID forKey:@"specialID"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    //    self.name = [aDecoder decodeObjectForKey:@"name"];
    self = [super init];
    if (self) {
        self.imgextra = [aDecoder decodeObjectForKey:@"imgextra"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.imgsrc = [aDecoder decodeObjectForKey:@"imgsrc"];
        self.digest = [aDecoder decodeObjectForKey:@"digest"];
        self.url_3w = [aDecoder decodeObjectForKey:@"url_3w"];
        self.photosetID = [aDecoder decodeObjectForKey:@"photosetID"];
        self.ads = [aDecoder decodeObjectForKey:@"ads"];
        self.skipType = [aDecoder decodeObjectForKey:@"skipType"];
        self.specialID = [aDecoder decodeObjectForKey:@"specialID"];
    }
    return self;
}

@end
